home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGNG_C
/
CSUBR.LZH
/
KBECHO.C
< prev
next >
Wrap
Text File
|
1985-04-11
|
1KB
|
41 lines
#define ERROR 0
#define NULL 0
/***********************************************************************/
/* */
/* The following are specific for the IBM PC. */
/* */
/***********************************************************************/
#define REVVID 0x70 /* reverse video attribute */
#define NORM 0x07 /* normal video attribute */
/***********************************************************************/
/* */
/* Miscellaneous ASCII characters */
/* */
/***********************************************************************/
#define ESC 0x1b /* escape code */
#define CTRLZ 26 /* eof char */
#define NULL 0x00 /* null char */
#define EOS 0x00 /* end of string */
char strbuf[20];
int charcnt = 0;
kbecho(KbChar)
char KbChar;
{
int showch();
charcnt += showch(KbChar);
if (charcnt >= 75) {
charcnt = 0;
strbuf[0] = '\n';
strbuf[1] = EOS;
conout(strbuf,NORM);
}
}